package com.platform.auth.feign;

import com.platform.auth.dto.UserAuthDTO;
import com.platform.common.result.R;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient("platform-admin")
public interface UserFeignClient {

    @GetMapping("/api/v1/users/username/{username}")
    @ApiOperation("根据用户名获取用户信")
    R<UserAuthDTO> getUserByUsername(@PathVariable String username);
}
